﻿CREATE TRIGGER Receipts_Tracking_Delete
ON [dbo].[Receipts] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Receipts_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Receipts_Tracking s JOIN DELETED i
    ON s.ReceiptID = i.ReceiptID
END














